const db = require('../db');
const mongoose = db.mongoose;
const Schema = db.Schema;
const menuSchema = new Schema({
  userName: {
    type: String,
    default: '',
  },
  listName: {
    type: String,
    default: '',
  },
  name: {
    type: String,
    default: '',
  },
  phone: {
    type: String,
    default: '',
  },
  address: {
    type: String,
    default: '',
  },
  desc: {
    type: String,
    default: '',
  }, 
  allGoodsCount: {
    type: String,
    default: '',
  },
  allGoodsPrice: {
    type: String,
    default: '',
  },
  goodsDetail: {
    type: Array,
    default: '',
  }
})

const menuType = mongoose.model('menu_type',menuSchema);
module.exports = menuType;